var status = -1;

function start(d, c, b) {
    status++;
    var a = -1;
    if (status <= a++) {
        qm.sendNormalTalk_Bottom("#face0#我们必须消灭掉一些#b影子斧木妖#k。\r\n最近它们的数量越来越多，给采集绸缎蘑菇造成了困难。", 36, 2560002, false, true)
    } else {
        if (status === a++) {
            qm.sendNormalTalk_Bottom("#face0#哎呀，忘了把采集装备带来了。你先在这里消灭怪物，我去去就来。", 36, 2560002, true, true)
        } else {
            if (status === a++) {
                qm.forceStartQuest(32972, "");
                qm.updateInfoQuest(32999, "10=h0;01=h1;02=h0;20=h0;11=h0;21=h0;12=h0;03=h0;13=h0;04=h0;14=h0;05=h0;15=h0;06=h0;16=h0;07=h0;17=h1;18=h0;19=h0");
                qm.OnStartNavigation(307000200, 0, "hunt00", 0);
                qm.dispose()
            }
        }
    }
}

function end(d, c, b) {
    (d == 1) ? status++ : status--;
    var a = -1;
    if (status <= a++) {
        qm.dispose()
    } else {
        if (status === a++) {
            qm.curNodeEventEnd(true);
            qm.eventSKill(0);
            qm.setInGameDirectionMode(true, false, true);
            qm.sendNormalTalk_Bottom("现在可以搜集材料了吧？", 57, 0, false, true)
        } else {
            if (status === a++) {
                qm.sendNormalTalk_Bottom("嗯？是石香蝴蝶！这可是稀罕玩意！快追！", 57, 0, true, true)
            } else {
                if (status === a++) {
                    qm.inGameDirectionEvent_ForcedFlip10(2, 200);
                    qm.inGameDirectionEvent_AskAnswerTime(1000)
                } else {
                    if (status === a++) {
                        qm.fieldEffect_InsertCanvas(1, 255, 0, 0, 0, 500, 0);
                        qm.inGameDirectionEvent_AskAnswerTime(500)
                    } else {
                        if (status === a++) {
                            qm.forceCompleteQuest(32972);
                            qm.updateInfoQuest(32972, "exp=1");
                            qm.gainExp(2462700);
                            qm.eventSKill(0);
                            qm.setInGameDirectionMode(false, true, false);
                            qm.dispose();
                            qm.warp(307000210, 0, true)
                        }
                    }
                }
            }
        }
    }
};